import api from './index';

export function fetchUserList() {
  return api.get('/api/user/list');
}
export function addUser(data: any) {
  return api.post('/api/user/add', data);
}
export function updateUser(data: any) {
  return api.post('/api/user/update', data);
}
export function deleteUser(uid: string) {
  return api.post('/api/user/delete', { uid });
}
export function resetPassword(uid: string, newPassword: string) {
  return api.post('/api/user/reset-password', { uid, newPassword });
} 